package cz.mendelu.swi2.controllers;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.HandlerMapping;

@Controller
@RequestMapping("/url")
public class UrlParserController {
	
	@RequestMapping("/{data}")
	public String urlParse(@PathVariable String data, Model model) {
		model.addAttribute("data", data);
		return "urlData";
	}
	
}
